<template>
  <div class="logo">
<!--    <router-link :to="'/indexPage'">-->
    <router-link :to="{ name : 'indexPage_first' }">
      <!-- <LogoSvg alt="logo"/> -->
      <img :src="logoImg" alt="">
      <h1 v-if="showTitle">{{ title }}</h1>
    </router-link>
  </div>
</template>

<script>
import logoImg from '@/assets/logo.png'

export default {
  name: 'Logo',
  // components: {
  //   LogoSvg
  // },
  props: {
    title: {
      type: String,
      default: '',
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  },
  data () {
    return {
      logoImg: logoImg
    }
  }
}
</script>
